package ebj.common.exception;

public class MyThread implements Runnable {

	@Override
	public void run() {
		// Thread.currentThread().setUncaughtExceptionHandler(new MyExceptionHandler());
		Thread.currentThread().setUncaughtExceptionHandler(new MySubHandler());
		// for (int i=5;i >=0 ;i--) {
		// int value = 5 / i;
		// System.out.println(value);
		// }
		System.out.println(Integer.parseInt("123"));
		System.out.println(Integer.parseInt("234"));
		System.out.println(Integer.parseInt("345"));
		System.out.println(Integer.parseInt("XYZ")); // This will cause NumberFormatException
		System.out.println(Integer.parseInt("456"));
	}

}
